import axios from 'axios';

const instance = axios.create({
    baseURL: 'http://localhost:8004', // 服务器地址
    timeout: 5000, // 请求超时时间
    headers: {
        'Content-Type': 'application/json'
    },
    withCredentials: true // 确保跨域请求中包含 Cookie
});

export default instance;